package designPattern.factoryMethod;

/**
 * 抽象工厂模式主函数.
 */
public class App {

    public static void main(String[] args) {
        Factory foodFactory = new FoodFactory();
        FoodSell foodSell = (FoodSell) foodFactory.produce();
        foodSell.sell();

        Factory clothesFactory = new ClothesFactory();
        ClothesSell clothesSell = (ClothesSell) clothesFactory.produce();
        clothesSell.sell();
    }

}
